package com.itany.netclass.config;

import com.itany.mvc.annotation.Configuration;
import com.itany.mvc.config.ResourceHandlerRegistry;
import com.itany.mvc.config.WebConfigurer;

/**
 * Author:sjy@itany.com
 * Date:2021/9/30 9:53
 * Version:1.0-SNAPSHOT
 */
@Configuration
public class MyConfig extends WebConfigurer {
    @Override
    public void addViewControllers(ResourceHandlerRegistry registry) {
//        后台的页面
        registry.addViewController("back/back_login","/showLogin");//登录页面
        registry.addViewController("back/back_Home","/showHome");//主页
        registry.addViewController("back/back_userSet","/showUser");//展示所有的用户
        registry.addViewController("back/back_courseTypeSet","/showCourseType");//展示所有的课程类型
        registry.addViewController("back/back_courseSet","/showCourse");//展示所有的课程
        registry.addViewController("back/back_courseReourceSet","/showChapter");//展示所有的章节
        registry.addViewController("back/back_resourceSet","/showResource");//展示所有的资源
        registry.addViewController("back/back_resourceDetailSet","/showMp4");//看视频
        registry.addViewController("back/back_commentSet","/showComment");//看评论
        registry.addViewController("back/back_commentManageSet","/showManage");//审核评论


//        前台页面
        registry.addViewController("backend/front_index","/showFrontMain");
    }
}
